home *** CD-ROM | disk | FTP | other *** search
/ Aminet 52 / Aminet 52 (2002)(GTI - Schatztruhe)[!][Dec 2002].iso / Aminet / misc / emu / Apex-src.lha / GRAPHICS.TXT < prev    next >
Text File  |  2001-09-30  |  2KB  |  62 lines

  1. GRAPHICS.TXT    JUN-20-87
  2.  
  3. The portability of programs using graphics should be increased. To do this,
  4. first, a set of standardized graphics capabilities must be defined. Then,
  5. graphics handlers must be written to translate the standard into the actual
  6. capabilities of the available hardware.
  7.  
  8. There is a tremendous variation, and non-standardization of graphics.
  9. IBM is already out of control with more than 16 different modes.
  10.  
  11. There are graphics screens of all dimensions, aspect ratios, and mappings.
  12. It is undesirable to scale dimensions except by powers of 2. (It causes
  13. glitches, and multiplication and division are unacceptably slow.)
  14. Apple Lo-res graphics is almost never used.
  15. Stride doesn't have graphics (except limited character graphics).
  16. Plotters don't like to plot points (the ink doesn't flow).
  17. Common dimensions:
  18.     320x200        IBM EGA, Amiga, Atari, Apple GS
  19.     280x192        Apple
  20.     512x342        Mac
  21.     256x192        TI
  22. Many professional displays use horizontal dimensions of 1024, 2048, etc. and
  23. have a 3/4 aspect ratio.
  24. Lowest common denominator: 256x192 (4/3 aspect ratio).
  25. (320 -256) /320 = 20%
  26. (200 -192) /200 = 4%
  27.  
  28. Oftentimes color is unimportant.
  29. Lowest common denominator: Black and white.
  30.  
  31. Plotters don't like to do area fill (but printers do). (Get a fat pen, area fill
  32. is necessary for PC artwork, etc.)
  33. Line drawings are commonly used instead of area fill.
  34.  
  35. Upper-left-hand corner is usually 0,0.
  36.  
  37. Lowest common denominator: All graphics, no text mode (do text using graphics).
  38.  
  39.  
  40. BASIC OPERATIONS:
  41. SCALE(X,Y)    Powers of two only
  42. WINDOW(X,Y,X,Y)    For clipping memory address (multiple images not displayed)
  43.         multiple devices
  44. MOVE(X,Y)    Two dimensional, 256x192, power of 2 scale factor for both x & y
  45. COLOR()        Attribute, pen up/down
  46.         All kinds of attributes can be applied to lines, hence it is
  47.         best to not try to standardize them. Keep them separate.
  48.         (E.g: color, dotted, XOR, erase, bit plane address)
  49. PATTERN
  50.  
  51. COMMON EXTENSIONS (done for efficiency):
  52. POINT(X,Y)
  53. LINE(X,Y)
  54. CLEAR        Area fill
  55.  
  56. CURVES         Circle, arc, ellipse, ellipse at any angular orientation,
  57.         arc of ellipse
  58. AREA FILL     Rectangular areas, circular areas, flood fill
  59. TEXT
  60. llipse, ellipse at any angular orientation,
  61.         arc of ellipse
  62. AREA FILL     Rectangular areas, circu